import request from './network'

/**
 * 消费端--拍水检测 form-data格式
 * @param {*} data {token, header, data}
 */
export function audioDetetionSubmitApi(data) {
  return request({
    url: 'applets/v1/consume/audio/upload',
    method: 'post',
    header: {
      // Authorization: 'Bearer ' + data.token
      ...data.header
    },
    data: data.data
  })
}

/**
 * 消费端--rgb检测提交 form-data格式
 * @param {*} data {token, header, data: {imageUrlList:图片Url列表}}
 */
export function rgbDetectionSubmitApi(data) {
  return request({
    url: 'applets/v1/consume/algorithm/rgb',
    method: 'post',
    header: {
      // Authorization: 'Bearer ' + data.token
      ...data.header
    },
    data: data.data
  })
}